package com.scut.fy.common.core.util;

import org.apache.commons.lang.StringUtils;

/**
 * @author JY
 */
public class Assert extends org.springframework.util.Assert {
    public static void isBlank(final String str, final String message) {
        if (StringUtils.isBlank(str)) {
            throw new IllegalStateException(message);
        }
    }

    public static void isNull(final Object object, final String message) {
        if (object == null) {
            throw new IllegalStateException(message);
        }
    }
}
